package com.acpt.system.api.fallback;

import com.acpt.common.result.Result;
import com.acpt.common.result.ResultCode;
import com.acpt.system.api.UserFeignClient;
import com.acpt.system.dto.UserAuthInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class UserFeignFallbackClient implements UserFeignClient {

  @Override
  public Result<UserAuthInfo> getUserAuthInfo(String username) {
      log.error("feign远程调用系统用户服务异常后的降级方法");
    return Result.failed(ResultCode.DEGRADATION);
  }
}
